// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '报工',
        name: 'Report',
        url: "/Report/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ResportCode":"","OrderCode":"","PlanCode":"","ReportNum":"","DefectiveNum":"","WorkTime":"","CreateTime":""};
    const editFormOptions = [[{"title":"报工编号","required":true,"field":"ResportCode","type":"text"}],
                              [{"dataKey":"订单编码","data":[],"title":"订单编号","required":true,"field":"OrderCode","type":"select"}],
                              [{"title":"计划编号","required":true,"field":"PlanCode","type":"text"}],
                              [{"title":"报工数量","required":true,"field":"ReportNum","type":"text"}],
                              [{"title":"次品数量","required":true,"field":"DefectiveNum","type":"text"}],
                              [{"title":"生产耗时（分钟）","required":true,"field":"WorkTime","type":"text"}],
                              [{"title":"创建时间","required":true,"field":"CreateTime","type":"datetime"}]];
    const searchFormFields = {"OrderCode":"","PlanCode":""};
    const searchFormOptions = [[{"dataKey":"订单编码","data":[],"title":"订单编号","field":"OrderCode","type":"like"},{"title":"计划编号","field":"PlanCode","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ResportCode',title:'报工编号',type:'string',width:110,require:true,align:'left'},
                       {field:'OrderCode',title:'订单编号',type:'string',bind:{ key:'订单编码',data:[]},width:110,require:true,align:'left'},
                       {field:'PlanCode',title:'计划编号',type:'string',width:110,require:true,align:'left'},
                       {field:'ReportNum',title:'报工数量',type:'int',width:110,require:true,align:'left'},
                       {field:'DefectiveNum',title:'次品数量',type:'int',width:110,require:true,align:'left'},
                       {field:'WorkTime',title:'生产耗时（分钟）',type:'int',width:110,require:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}